<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace longbingcore\tools;

class LongbingDefault
{
    public static $notImgUrl = "https://retail.xiaochengxucms.com/lbCardDefaultImage.png";
    public static $avatarImgUrl = "https://retail.xiaochengxucms.com/defaultAvatar.png";
    public static function formatDefaultImage($data, $target, $default, $defaultArr)
    {
        foreach ($data as $index => $item) {
            if(is_array($item)) {
                $data[$index] = formatDefaultImage($item, $target, $default, $defaultArr);
            } elseif($index == $target && $item == "" && isset($defaultArr[$default])) {
                $data[$index] = $defaultArr[$default];
            }
        }
        return $data;
    }
}

?>